package mt.teste;

import static org.junit.Assert.assertEquals;

import mt.Order;

import org.junit.Test;

public class TesteOrder {
	
	@Test
	public void TestOrder(){
		Order orderBuy = Order.createBuyOrder("TesteBuy", "BES", 100, 1);
		Order orderSell = Order.createSellOrder("TesteSell", "BES", 100, 1);
		
		assertEquals(orderBuy.getNickname(),"TesteBuy");
		assertEquals(orderBuy.getNumberOfUnits(),100);
		assertEquals(orderBuy.getStock(),"BES");
		//assertEquals(orderBuy.getPricePerUnit(),1);
		orderBuy.getPricePerUnit();
		orderBuy.setNumberOfUnits(2);
		orderSell.setServerOrderID(1);
		orderSell.getServerOrderID();
		assertEquals(orderSell.isBuyOrder(),false);
		assertEquals(orderSell.isSellOrder(),true);
		assertEquals(orderBuy.isBuyOrder(),true);
		assertEquals(orderBuy.isSellOrder(),false);
		orderBuy.toString();
		orderSell.toString();
		
		
		
		
		
	}

}
